package com.irs.irsforum.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yihuili
 * @since 2020-02-15
 */
@Data
public class Teacher extends Model<Teacher> {

    private static final long serialVersionUID = 1L;

    /**
     * 教师id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 教师工号
     */
	@TableField("tea_num")
	private String teaNum;
    /**
     * 教师姓名
     */
	@TableField("tea_name")
	private String teaName;
	private String salt;
    /**
     * 教师密码
     */
	@TableField("tea_pwd")
	private String teaPwd;
    /**
     * 教师头像
     */
	@TableField("tea_img")
	private String teaImg;
    /**
     * 教师邮箱
     */
	@TableField("tea_email")
	private String teaEmail;
    /**
     * 教师手机号
     */
	@TableField("tea_phone")
	private String teaPhone;
    /**
     * 教师性别：0-未知，1-男，2-女
     */
	@TableField("tea_sex")
	private Integer teaSex;
    /**
     * 教师年龄
     */
	@TableField("tea_age")
	private Integer teaAge;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Teacher{" +
			"id=" + id +
			", teaNum=" + teaNum +
			", teaName=" + teaName +
			", salt=" + salt +
			", teaPwd=" + teaPwd +
			", teaImg=" + teaImg +
			", teaEmail=" + teaEmail +
			", teaPhone=" + teaPhone +
			", teaSex=" + teaSex +
			", teaAge=" + teaAge +
			", createTime=" + createTime +
			"}";
	}
}
